import * as log4js from 'log4js';

export class LoggerUtility {
    public static info(message) {
        log4js.getLogger('info').info(message);
    }

    public static warn(message) {
        log4js.getLogger('warn').warn(message);
    }

    public static error(message, exception) {
        log4js.getLogger('error').error(message + ' - exception: ' + exception);
    }

    public static fatal(message, exception) {
        log4js.getLogger('fatal').fatal(message + ' - exception: ' + exception);
    }
}
